package com.ruoyi.module.domain;

import com.ruoyi.common.core.domain.entity.SysUser;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 课程学习记录对象 fu_material_record
 *
 * @author fubojin
 * @date 2025-03-05
 */
@Data
@ApiModel(value = "课程学习记录")
@EqualsAndHashCode(callSuper = true)
public class MaterialRecord extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ApiModelProperty(value = "主键")
    private Long id;

    /**
     * 用户ID
     */
    @Excel(name = "用户ID")
    @ApiModelProperty(value = "用户ID")
    private Long userId;

    /**
     * 学习次数
     */
    @Excel(name = "学习次数")
    @ApiModelProperty(value = "学习次数")
    private Integer learningFrequency;

    /**
     * 学习时长
     */
    @Excel(name = "学习时长")
    @ApiModelProperty(value = "学习时长")
    private Double duration;

    /**
     * 显示类型（）
     */
    @Excel(name = "显示类型", readConverterExp = "显示类型（）")
    @ApiModelProperty(value = "显示类型（）")
    private Integer type;

    /**
     * 学习排名
     */
    @ApiModelProperty(value = "学习排名")
    private Integer learningRanking;

    /**
     * 用户信息
     */
    @ApiModelProperty(value = "用户信息")
    private SysUser user;


}
